package cn.wolfcode.luowowo.comment.domain;


import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
//景点评论
@Setter
@Getter
@Document("scenic_comment")
public class ScenicComment implements Serializable {
    public static final int SCENIC_COMMENT_TYPE_COMMENT = 0; //普通评论
    public static final int SCENIC_COMMENT_TYPE = 1; //评论的评论
    @Id
    private String id;//mongodb默认的id
    private Long detailId;//景点id
    private String detailTitle;//景点标题
    private Long userId;//用户id
    private String username;//用户名
    private String city;//城市
    private int level;//等级
    private String coverUrl;//图片
    private String headUrl;//头像
    private Date createTime;//创建时间
    private String content;//评论内容
    private int star;//星星数
    private int thumbupnum;//点赞数
    private int type = SCENIC_COMMENT_TYPE_COMMENT; //评论类别

    private ScenicComment refComment;  //关联的评论
}

